package org.alex.samples.service;

import java.util.List;

import org.alex.samples.dao.IExamTestDAO;
import org.alex.samples.model.ExamTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ExamTestServiceImpl implements IExamTestService{
	
	@Autowired IExamTestDAO examTestDAO;

	@Override
	public List<ExamTest> FindAllExamTest() throws Exception {
		return examTestDAO.FindAllExamTest();
	}

	@Override
	public ExamTest FindExamTestById(int id) throws Exception{
		// TODO Auto-generated method stub
		return examTestDAO.FindExamTestById(id);
	}

	@Override
	public void creatExamTest(ExamTest examTest) throws Exception{
		examTestDAO.creatExamTest(examTest);
	}

	@Override
	public void editExamTest(ExamTest examTest) throws Exception{
		examTestDAO.editExamTest(examTest);
	}

	@Override
	public void deleteExamTest(int id) throws Exception{
		examTestDAO.deleteExamTest(id);
	}

	@Override
	public List<ExamTest> FindExamTestListBySubjectId(Integer subjectId) {
		return examTestDAO.FindExamTestListBySubjectId(subjectId);
	}

	
	

}
